package com.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @author
 * @Description:
 * @date 2021/4/18 13:23
 */
@Data
@ApiModel
public class Carousel implements Serializable {

    @ApiModelProperty(value = "主键id")
    private Long idcarousel;
    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空")
    private String title;
    @ApiModelProperty(value = "轮播图片地址")
    @NotBlank(message = "轮播图片地址不能为空")
    private String image;
    @ApiModelProperty(value = "跳转地址")
    @NotBlank(message = "跳转地址不能为空")
    private String link;
    @ApiModelProperty(value = "备注")
    @NotBlank(message = "备注不能为空")
    private String remark;
    @ApiModelProperty(value = "状态(0: 可用 1: 不可用)")
    private int status;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

}
